package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.time.LocalDateTime;
import org.springblade.core.tool.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * VoyageCabinNode
 */
@Data
@TableName("voyage_cabin_node")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "VoyageCabinNode对象", description = "分舱停时")
public class VoyageCabinNode extends BaseEntity {

    /** 开始时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;
    
    /** 结束时间 */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    
    /** 作业类型 */
    @ApiModelProperty(value = "作业类型")
    private String workTypeKey;
    
    /** 状态 */
    @ApiModelProperty(value = "状态")
    private String workStatus;
    
    /** 备注 */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /** 航次ID */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "航次ID")
    private Long voyageId;

    /** 舱别 */
    @ApiModelProperty(value = "舱别")
    private String hold;

    /** 装卸类型 */
    @ApiModelProperty(value = "装卸类型")
    private String loadType;
    
}